package com.cl.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.lang.reflect.InvocationTargetException;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.enums.IdType;


/**
 * 药品入库
 * 数据库通用操作实体类（普通增删改查）
 * @author 
 * @email 
 * @date 2024-05-09 22:03:57
 */
@TableName("yaopinruku")
public class YaopinrukuEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;


	public YaopinrukuEntity() {
		
	}
	
	public YaopinrukuEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	/**
	 * 主键id
	 */
	@TableId
	private Long id;
	/**
	 * 入库编号
	 */
					
	private String rukubianhao;
	
	/**
	 * 药品名称
	 */
					
	private String yaopinmingcheng;
	
	/**
	 * 供应商
	 */
					
	private String gongyingshang;
	
	/**
	 * 剂型
	 */
					
	private String jixing;
	
	/**
	 * 规格
	 */
					
	private String guige;
	
	/**
	 * 生产时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date shengchanshijian;
	
	/**
	 * 到期时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
	@DateTimeFormat 		
	private Date daoqishijian;
	
	/**
	 * 药品单价
	 */
					
	private Double yaopindanjia;
	
	/**
	 * 入库数量
	 */
					
	private Integer kucun;
	
	/**
	 * 药品总价
	 */
					
	private Double yaopinzongjia;
	
	/**
	 * 备注
	 */
					
	private String beizhu;
	
	/**
	 * 入库时间
	 */
				
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat 		
	private Date rukushijian;
	
	/**
	 * 药师账号
	 */
					
	private String yaoshizhanghao;
	
	/**
	 * 药师姓名
	 */
					
	private String yaoshixingming;
	
	
	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 设置：入库编号
	 */
	public void setRukubianhao(String rukubianhao) {
		this.rukubianhao = rukubianhao;
	}
	/**
	 * 获取：入库编号
	 */
	public String getRukubianhao() {
		return rukubianhao;
	}
	/**
	 * 设置：药品名称
	 */
	public void setYaopinmingcheng(String yaopinmingcheng) {
		this.yaopinmingcheng = yaopinmingcheng;
	}
	/**
	 * 获取：药品名称
	 */
	public String getYaopinmingcheng() {
		return yaopinmingcheng;
	}
	/**
	 * 设置：供应商
	 */
	public void setGongyingshang(String gongyingshang) {
		this.gongyingshang = gongyingshang;
	}
	/**
	 * 获取：供应商
	 */
	public String getGongyingshang() {
		return gongyingshang;
	}
	/**
	 * 设置：剂型
	 */
	public void setJixing(String jixing) {
		this.jixing = jixing;
	}
	/**
	 * 获取：剂型
	 */
	public String getJixing() {
		return jixing;
	}
	/**
	 * 设置：规格
	 */
	public void setGuige(String guige) {
		this.guige = guige;
	}
	/**
	 * 获取：规格
	 */
	public String getGuige() {
		return guige;
	}
	/**
	 * 设置：生产时间
	 */
	public void setShengchanshijian(Date shengchanshijian) {
		this.shengchanshijian = shengchanshijian;
	}
	/**
	 * 获取：生产时间
	 */
	public Date getShengchanshijian() {
		return shengchanshijian;
	}
	/**
	 * 设置：到期时间
	 */
	public void setDaoqishijian(Date daoqishijian) {
		this.daoqishijian = daoqishijian;
	}
	/**
	 * 获取：到期时间
	 */
	public Date getDaoqishijian() {
		return daoqishijian;
	}
	/**
	 * 设置：药品单价
	 */
	public void setYaopindanjia(Double yaopindanjia) {
		this.yaopindanjia = yaopindanjia;
	}
	/**
	 * 获取：药品单价
	 */
	public Double getYaopindanjia() {
		return yaopindanjia;
	}
	/**
	 * 设置：入库数量
	 */
	public void setKucun(Integer kucun) {
		this.kucun = kucun;
	}
	/**
	 * 获取：入库数量
	 */
	public Integer getKucun() {
		return kucun;
	}
	/**
	 * 设置：药品总价
	 */
	public void setYaopinzongjia(Double yaopinzongjia) {
		this.yaopinzongjia = yaopinzongjia;
	}
	/**
	 * 获取：药品总价
	 */
	public Double getYaopinzongjia() {
		return yaopinzongjia;
	}
	/**
	 * 设置：备注
	 */
	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}
	/**
	 * 获取：备注
	 */
	public String getBeizhu() {
		return beizhu;
	}
	/**
	 * 设置：入库时间
	 */
	public void setRukushijian(Date rukushijian) {
		this.rukushijian = rukushijian;
	}
	/**
	 * 获取：入库时间
	 */
	public Date getRukushijian() {
		return rukushijian;
	}
	/**
	 * 设置：药师账号
	 */
	public void setYaoshizhanghao(String yaoshizhanghao) {
		this.yaoshizhanghao = yaoshizhanghao;
	}
	/**
	 * 获取：药师账号
	 */
	public String getYaoshizhanghao() {
		return yaoshizhanghao;
	}
	/**
	 * 设置：药师姓名
	 */
	public void setYaoshixingming(String yaoshixingming) {
		this.yaoshixingming = yaoshixingming;
	}
	/**
	 * 获取：药师姓名
	 */
	public String getYaoshixingming() {
		return yaoshixingming;
	}

}
